import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import set from '@dfeidao/atom-web/local/set';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';

export default async function a001(fd: IFeidaoAiBrowserComponent, d_name: string, nos: string, d_level: string) {
	//左侧新增窗口
	const res1 = await nodejs('risk-point/zj-000009/s001', {
		filter: {
			risk_level: d_level,
		}
	});
	render(fd, res1, p001, 'p001', 'inner');
	const n = fd.data.node.querySelector<HTMLDivElement>('[data-id="left_add"]');
	set_node_cls(n, 'display-n', false);
	set(fd, 'd_name', d_name);
	set(fd, 'nos', nos);

}
